$(document).ready(function() {
		
		



		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			defaultDate: '2014-09-12',
			lang: 'pl',
			selectable:false,
			selectHelper: true,
			defaultView: 'agendaWeek',
			timeFormat: 'h:mm',
			
			select: function(start, end) {
				var title = prompt('Event Title:');
				var eventData;
				if (title) {
					eventData = {
						title: title,
						start: start,
						end: end
					};
					$('#calendar').fullCalendar('renderEvent', eventData, true); // stick? = true
				}
				$('#calendar').fullCalendar('unselect');
			},
			editable: false,
			eventLimit: true, // allow "more" link when too many events
			events: [
				{
					title: 'Kinezoterapia',
					start: '2014-09-12T10:00:00'
				},
				{
					title: 'masaż',
					start: '2014-09-14T14:00:00',
					end: '2014-09-14T14:45:00'
				}
				
			]
		});
		
	});
